package answer;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 编写应用程序，接受命令行中给出的一串整数， 将其存储到数组中，并利用简单选择排序、 冒泡排序等方法对其进行从小到大排序，
 *         将排序后的结果输出。
 *
 */

public class Answer9 {
	public static void main(String[] args) {
		int flag = 0;
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
		try {
			String read = buf.readLine();
			String[] nums = read.split(" ");
			int sums[] = new int[nums.length];
			for (int i = 0; i < nums.length; i++) {
				sums[i] = Integer.parseInt(nums[i]);
			}
			for (int i = 0; i < sums.length; i++) {
				for (int j = i; j < sums.length; j++) {

					if (sums[i] > sums[j]) {
						flag = sums[i];
						sums[i] = sums[j];
						sums[j] = flag;
					}
				}
			}
			for (int i = 0; i < sums.length; i++) {
				System.out.print(sums[i] + " ");
			}
		} catch (IOException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}
}
